<template>
  <div class="comment">
    <h3 class="border-bottom">用户评论</h3>
    <div class="comments border-bottom" v-for="item of comment" :key="item.id">
      <div class="commentText">
        <span  class="iconfont TextLeft">&#xe647;&#xe647;&#xe647;&#xe647;&#xe647;</span>
        <span class="TextRight">{{item.name}} {{item.time}}</span>
      </div>
      <p class="texts border-bottom">{{item.title}}
      </p>
    </div>
  </div>
</template>

<script>
export default {
  name: 'DetaiComment',
  props: {
    comment: Array
  }
}
</script>

<style lang="stylus" scoped="scoped">
  .comment
    margin-top 0.2rem
    h3
      padding 0.2rem 0.2rem
      background white
  .comments
    background white
  .commentText
    padding 0.3rem
    .TextLeft
      color #ffb436
      font-size 0.2rem
      float left
    .TextRight
      float right
  .texts
    background white
    padding 0.2rem 0.2rem
</style>
